<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>支付订单</title>
    <link rel="stylesheet" href="https://unpkg.com/layui@2.6.8/dist/css/layui.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/qrcodejs/1.0.0/qrcode.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.5.1/vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/layer/3.5.1/layer.js"></script>
    <script src="https://unpkg.com/layui@2.6.8/dist/layui.js"></script>
</head>
<body>
<div id="dpLTE">
    <div id="qrcode" style="margin: 30px;"></div>
    <div class="layui-row">
        <div class="layui-col-xs12">
            <div style="text-align: center;"><h3>扫码支付</h3></div>
        </div>
    </div>
</div>
</body>
<script>
    function RequestParameter(){
        var url = window.location.search; //获取url中"?"符后的字串
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            var strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
            }
        }
        return theRequest
    }

    var codeUrl=RequestParameter()["codeUrl"];
    console.log(decodeURIComponent(codeUrl))//Mrant
    let qrcode = new QRCode(document.getElementById("qrcode"), {
        width: 300,
        height: 300
    });
    qrcode.makeCode(decodeURIComponent(codeUrl));


</script>
</html>